/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rcnss.ui.menu.command;

import com.vaadin.ui.MenuBar.MenuItem;

/**
 * 
 * @author Baligh GUESMI
 */
public class MenuCommandLogout extends AbstractMenuCommand {

    private static final long serialVersionUID = 1L;

    public void menuSelected(MenuItem selectedItem) {
    	if (this.window == null)
    		System.out.println("Now Window");
    	else
    		this.window.getApplication().close();
    }
}
